package co.yixiang.modules.system.mapper;

import co.yixiang.common.mapper.CoreMapper;
import co.yixiang.modules.system.entity.domain.FreightTemplateChild;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface FreightTemplateChildMapper extends CoreMapper<FreightTemplateChild> {
    /**
     * 物理删除，根据模板Id
     * @param templateId
     * @return
     */
    @Select("delete from freight_template_child where freight_template_id = #{templateId}")
    void deleteByFreightTemplateIdPhysical(@Param("templateId") String templateId);
}
